import React, { Component } from 'react'
import { request } from '../../api'

export default class UserIndex extends Component {
    state={
        list:[]
    }
    componentDidMount(){
        request.getuserlist()
        .then(res=>{
            if(res.code==200){ 
                console.log(res.result);
                this.setState({list = res.result})
                console.log(this.state.list);
            }
        })
    }
    render() {
        return (
            <div className="site-layout-background" style={{ padding: 24, minHeight: 760 }}>
                <h2>this is user</h2>
            </div>
        )
    }
}
